package com.customer.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.core.dao.DeveloperDAO;
import com.core.model.Developer;
import com.customer.service.DeveloperIService;

@Service("developerServiceImpl")
public class DeveloperServiceImpl implements DeveloperIService {

	@Resource(name="developerDAO")
	private DeveloperDAO developerDAO;
	
	@Override
	public Developer getDeveloperByID(Integer ID) {
		
		return developerDAO.getDeveloperByID(ID);
	}

	@Override
	public void addDeveloper(Developer developer) {
		
		developerDAO.addDeveloper(developer);
	}

	@Override
	public void updateDeveloper(Developer developer) {
		
		developerDAO.updateDeveloper(developer);
	}

	@Override
	public void deleteDeveloperByIDForDelete(Integer id) {
		
		developerDAO.deleteDeveloperByIDForDelete(id);

	}

	@Override
	public void deleteDeveloperByIDForHQL(Integer id) {
		
		developerDAO.deleteDeveloperByIDForHQL(id);
	}

	@Override
	public List<Developer> getAllDevelopers() {
		// TODO Auto-generated method stub
		return developerDAO.getAllDevelopers();
	}

}
